package com.example.student.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.student.config.PageParam;
import com.example.student.entity.ActivityCollection;

public interface ActivityCollectionService {

        /**
        * 根据id获取单条
        * @param id
        * @author lx
        * @return
        */
        ActivityCollection getOne (String id);

        /**
        * 新增
        * @param activityCollection
        * @author lx
        * @return
        */
        boolean add (ActivityCollection activityCollection);

        /**
        * 修改
        * @param activityCollection
        * @author lx
        * @return
        */
        boolean update (ActivityCollection activityCollection);

        /**
        * 删除
        * @param id
        * @author lx
        * @return
        */
        boolean delete(String id);

        /**
        * 批量删除
        * @param id
        * @author lx
        * @return
        */
        boolean deleteByIds(String[] id);

        /**
        * 分页查询
        * @param page
        * @author lx
        * @return
        */
        IPage<ActivityCollection> page(PageParam page);

}
